/*
 * @Author: your name
 * @Date: 2022-03-29 14:28:42
 * @LastEditTime: 2022-07-08 13:41:13
 * @LastEditors: DT1604\ZPL zhoupeili@dpc.com.cn
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \operation-platform-ui\src\api\user.js
 */
import request from '@/utils/request';
export function userInfo(data) {
  return request({url: '/api/resource/tree', method: 'get', data: data});
}
// 修改密码
export function userChangePassword(data) {
  return request({url: '/api/user/change-password', method: 'post', data: data});
}
export function getRole(data) {
  return request({url: '/api/power/all', method: 'post', data: data});
}
// 上传文件
export function uploadFile(data) {
  return request({url: '/api/advertisement/uploadImage', method: 'post', data: data});
}
